package com.dingdang.controller;

import com.dingdang.util.ClientChat;
import com.dingdang.util.ServerChat;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/clientChat")
public class ClientChatController {

    public static void main(String[] args) {
        ClientChat chat = new ClientChat();
        chat.init();
    }
    @GetMapping("/chat")
    public void chat(){
        new Thread().start();
       /* ClientChat chat = new ClientChat();
        chat.init();*/
    }

}
